indexOf

@IntRange(from = "-1")
open fun indexOf(@Nullable locale: Locale): Int(source)

Searches this LocaleListCompat for the specified Locale and returns the index of the first occurrence.

Return

The index of the first occurrence of the Locale or -1 if the item wasn't found

Parameters

locale

The Locale to search for.